<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String url = request.getScheme() + "://" + request.getServerName()
			+ request.getRequestURI();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>新增角色</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<!-- modal页固定调用 -->
		<%@ include file="/html/custom/header.jsp"%>
		<%@ include file="/html/custom/modalHeader.jsp"%>
		
		<style>
			
		</style>
		<script type="text/javascript">
			$(function(){
				$.validator.setDefaults({
					submitHandler: function(form) {
						 //alert("submitted!"); 
						form.submit();
					},
					highlight: function(input) {
						$(input).addClass("ui-state-highlight");
					},
					unhighlight: function(input) {
						$(input).removeClass("ui-state-highlight");
					}
			});
				$("form").eq(0).validate();
			});
		</script>
	</head>

	<body>
		<div id="content">
			<form action="/swss/user/role_add.action" target="_top">
				<fieldset>
					<p>
						<label for="name">
							角色名称
						</label>
						<input type="hidden" name="role.id" value="<s:property value="role.id" />" /> 
						<input type="text" name="role.roleName"
							class="required ui-widget-content ui-corner-all txt" value="<s:property value="role.roleName" />" />
						
					</p>

					<p class="p2" >
						<label for="name">
							角色描述
						</label>
						<textarea rows="4" name="role.description"
							class="ui-widget-content ui-corner-all txt" value="<s:property value="role.description" />"></textarea>
					</p>


				</fieldset>

			</form>

		</div>

		<!-- modal也固定页尾 （按钮） -->
		<%@ include file="/html/custom/modalFooter.jsp"%>


	</body>
</html>
